﻿@model Web.Models.RegisterModel
@{
    Layout = "~/Views/Shared/_UnauthLayout.cshtml";
    ViewBag.Title = "Register";
}

<div id="main_column_login" class="clear">
    <div class="login-wrap">
        <h1 class="clear">
            <a href="~/" class="float-left">Create a new account.</a>
            <span>Registration Form</span>
        </h1>
        @using (Html.BeginForm("Register", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "cm-form-highlight cm-skip-check-items" }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <input type="hidden" name="return_url" value="@Url.Action("Index","Home")" />

            <div class="login-content">
                <div class="clear-form-field">
                    <p>
                        <label for="username" class="cm-required cm-email">@Html.LabelFor(m => m.UserName):</label>
                    </p>
                    @Html.TextBoxFor(m => m.UserName, new { @class = "input-text cm-focus", @tabindex = "1", @id = "username", @name = "user_login", @size = "20", Value = "admin@example.com" })
                    @Html.ValidationMessageFor(m => m.UserName)

                </div>


                <div class="clear-form-field">
                    <p>
                        <label for="password" class="cm-required">@Html.LabelFor(m => m.Password):</label>
                    </p>
                    @Html.PasswordFor(m => m.Password, new { @class = "input-text", @tabindex = "2", @max_length = "32", @id = "password", @name = "password", @size = "20", Value = "admin" })
                    @Html.ValidationMessageFor(m => m.Password)
                </div>

                <div class="clear-form-field">
                    <p>
                        <label for="password" class="cm-required">@Html.LabelFor(m => m.Password):</label>
                    </p>
                    @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "input-text", @tabindex = "2", @max_length = "32", @id = "confirm_password", @name = "confirm_password", @size = "20", Value = "admin" })
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </div>

                <div class="buttons-container nowrap">
                    <div class="float-left">
                        <span class="submit-button cm-button-main ">
                            <input type="submit" name="dispatch[auth.login]" value="Sign in" tabindex="3" />
                            <input type="submit" name="dispatch[auth.login]" value="Sign in" tabindex="3" />                   
                        </span>
                    </div>
                </div>
            </div>
        }
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }

    </div>
    <!--main_column_login-->
</div>
